import service from "../utils/request";

//获取地址列表
export function getAddressList(payload = {}) {
    return service.get('/address/list', { params: payload })
}
//更新地址接口

export function addressUpdate(payload = {}) {
    return service.post('/address/update',  payload)
}//添加地址
export function addressAdd(payload = {}) {
    return service.post('/address/add',  payload)
}
//删除地址
export function addressDel(payload = {}) {
    return service.post('/address/delete',  payload)
}
//查询默认地址
export function getDefaultAddress(payload = {}) {
    return service.post('/address/defaultAddress',  payload)
}